<%@ page import="java.sql.*, studentportal.*"%>
<html>
<body background="indtextb.jpg" bgcolor="#FFFFFF" text="#000000" link="#3366CC" vlink="#666666" alink="#996600">

<table border="0" width="100%" bordercolorlight="#666666" bordercolordark="#000000">
  <tr>
    <td width="100%"><img border="0" src="StdPrtlbanner.jpg" width="846" height="65">&nbsp;</td>
  </tr>
</table>
<table border="0" align="center" width="100%" bordercolorlight="#666666" bordercolordark="#000000">
  <tr>
    <td width="10%">
      <a href="Student_Persanal_InfoView.jsp">Personal Info</a></td>
    <td width="10%">
      <a href="Student_Course_InfoView.jsp">Course Info</a></td>
    <td width="10%">
      <a href="Student_Notes_InfoView.jsp">Notes Info</a></td>
    <td width="10%">
      <a href="Student_Assignment_InfoView.jsp">Assignment Info</a></td>

    <td width="10%">
      <a href="Student_Book.jsp">Books</a></td>
    <td width="10%">
      <a href="Student_Notification.jsp">Notifications</a></td>
    <td width="10%">
      <a href="Student_Security_InfoView.jsp">Security</a></td>
    <td width="10%">
      <a href="Home.html">Home</a></td>
  </tr>
</table>
<br><br>

<body>

<%
					
					Connection con=MySQLDriver.getConnection(); 
					Statement st=con.createStatement();					
					String str="select * from student_login where student_id='"+session.getAttribute("StudentId")+"'";
					System.out.println(str);
					ResultSet rs=st.executeQuery(str);
					rs.next();
					//Student stu=(Student)session.getAttribute("Student");
%>
<p align="center">&nbsp;</p>
<form action="./StudentSecurity">
 
  <div align="center">
    <center>
    <table border="1" width="68%" bordercolor="#0000FF">
      <tr>
        <td width="100%" colspan="2">
          <p align="center"><b><font size="4" color="#008000"><b>Student Security Information</b></td>
      </tr>
    </center>
    <tr>
      <td width="50%" valign="middle" align="left">
        <p align="left">Student_Id</td>
      <center>
      <td width="50%"><input type="text" name="sid" size="20" tabindex="1" value="<%=rs.getString(1)%>" disabled="true"></td>	
      </tr>
    </center>
    <tr>
      <td width="50%" valign="middle" align="left">
        <p align="left">Login Name</td>
      <center>
      <td width="50%"><input type="text" name="LN" value="<%=rs.getString(2)%>" size="20"></td>
      </tr>
      <tr>
        <td width="50%" valign="middle" align="left">Old_Pws</td>
        <td width="50%"><input type="password" name="Old" size="20"></td>
      </tr>
      <tr>
        <td width="50%" valign="middle" align="left">New_Psw</td>
        <td width="50%"><input type="password" name="New1" size="20"></td>
      </tr>
	  <tr>
        <td width="100%" colspan="2" align="center">
			 <input type="submit" value="Submit" name="action">
          </td>
      </tr>	
      </table>
    </center>
  </div>
</form>
<p align="left">&nbsp;</p>


</body>

</html>
